package com.camel.iamhi.entities;

import lombok.Data;

/**
 * @author camel
 */
@Data
public class IFilter {

    /**
     * 属性
     **/
    private String fieldName;

    /**
     * 比较符
     **/
    private String compare;

    /**
     * 比较值
     **/
    private Object fieldValue;

    /**
     * 字段名称
     **/
    private String columnName;

    private String tableName;

    public IFilter() {
    }

    public IFilter(String fieldName, String compare, Object fieldValue) {
        this.fieldName = fieldName;
        this.compare = compare;
        this.fieldValue = fieldValue;
    }

    public IFilter(String fieldName, String compare, String fieldValue) {
        this.fieldName = fieldName;
        this.compare = compare;
        this.fieldValue = fieldValue;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getCompare() {
        return compare;
    }

    public void setCompare(String compare) {
        this.compare = compare;
    }

    public Object getFieldValue() {
        return fieldValue;
    }

    public void setFieldValue(Object fieldValue) {
        this.fieldValue = fieldValue;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }
}
